import request from '@/utils/request'

// 查询 定价配置列表
export function getPricUserPriceList(query) {
    return request({
        url: '/pricing/pricingConfigAuthor/queryPricingUserAuthorByPage.action',
        method: 'get',
        params: query
    })
}


// 查询 用户组列表 priceId
export function getPricUserPriceById(priceId) {
    return request({
        url: '/pricing/pricingUserPrice/getPricUserPriceById.action',
        method: 'get',
        params: {"priceId": priceId}
    })
}

// 新增 用户组
export function addPricUserPrice(query) {
    return request({
        url: '/pricing/pricingUserPrice/addPricUserPrice.action',
        method: 'get',
        params: query
    })
}

// 修改 用户组
export function updatePricUserPrice(query) {
    return request({
        url: '/pricing/pricingUserPrice/updatePricUserPrice.action',
        method: 'get',
        params: query
    })
}

// 删除 用户组
export function deletePricUserPrice(priceIds) {
    return request({
        url: '/pricing/pricingUserPrice/deletePricUserPrice.action',
        method: 'get',
        params: {"priceIds": JSON.stringify(priceIds)}
    })
}

// 查询 用户
export function findUserList(query) {
    return request({
        url: '/pricing/pricingUserPrice/findUserList.action',
        method: 'get',
        params: query
    })
}

// 查询 组内用户
export function findInUserList(query) {
    return request({
        url: '/pricing/pricingUserPrice/findInUserList.action',
        method: 'get',
        params: query
    })
}

// 查询 组外用户
export function findOutUserList(query) {
    return request({
        url: '/pricing/pricingUserPrice/findOutUserList.action',
        method: 'get',
        params: query
    })
}

// 用户组 增加删除
export function dealTransferUser(query) {
    return request({
        url: '/pricing/pricingUserPrice/dealTransferUser.action',
        method: 'get',
        params: query
    })
}


